package com.lvhaosb.newpneumonia.mapper;

import com.lvhaosb.newpneumonia.POJO.po.ForeignEpidemic;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 国外新冠疫情 Mapper 接口
 *
 * @author lvhao
 * @since 2020-06-21
 */
@Repository
public interface ForeignEpidemicMapper {
    /**
     * 查询时间最新的信息
     * @param countryId
     * @return
     */
    List<ForeignEpidemic> selectByTimeNewest(int countryId);

    /**
     * 新添
     * @param foreignEpidemic
     * @return
     */
    int insert(@Param("foreignEpidemic") ForeignEpidemic foreignEpidemic);
}
